# -*- coding: utf-8 -*-
"""
 @Time    : 2021/1/25 下午6:14
 @Author  : tgy
 
"""

def my_range(start,end, step = 1):
    ...
    while start < end:
        yield start
        start += step


if __name__ == '__main__':
    ...
    print(list(my_range(1, 10)))